﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Review</title>
    <link rel="stylesheet" href="~/Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" />
    <link rel="stylesheet" href="~/Scripts/ligerUI/skins/ligerui-icons.css" />
    <link rel="stylesheet" href="~/Scripts/ligerUI/skins/Gray/css/all.css" />
    <link rel="stylesheet" href="~/Content/css/common.css" />
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/ligerUI/js/ligerui.all.js"></script>
    <script src="~/Scripts/common.js"></script>
    <script>
        function save(state) {
            $.ajax({
                url: "/StrokeCenter/MedicalRecords//ReviewSave",
                type: "post",
                data: {
                    pid: frameElement.dialog.get('data').pid,
                    state: state,
                    message: $("#txtReviewReason").val(),
                },
                success: function (r) {
                    var r = $.parseJSON(r);
                    if (r.Result == 1) {
                        $.ligerDialog.success("审核成功", "",
                            function () {
                                closeDialog();
                            }, { allowClose: false });
                    }
                    else if (r.Result == 0) {
                        $.ligerDialog.error(r.Body);
                    }
                    else {
                        $.ligerDialog.error("程序错误");
                    }
                }
            });
        }
    </script>
</head>
<body>
    <div style="text-align:center; margin:10px 0px;">
        <textarea id="txtReviewReason" rows="9" class="l-textarea" maxlength="500" style="padding:5px;width:250px;"></textarea>
        <div style="padding-top:10px;">
            <input id="btnPass" type="button" value="通过" class="l-button" onclick="save(1)" />&nbsp;&nbsp;&nbsp;
            <input id="btnNotPass" type="button" value="不通过" class="l-button" onclick="save(0)" />
        </div>
    </div>
</body>
</html>
